package com.kangdi.server.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kangdi.server.pojo.AdminRole;
import org.apache.ibatis.annotations.Param;


/**
 * <p>
 * InnoDB free: 7168 kB; (`adminId`) REFER `yeb/t_admin`(`id`) ON DELETE CASCADE; ( Mapper 接口
 * </p>
 *
 * @author kangdi
 * @since 2022-10-04
 */
public interface AdminRoleMapper extends BaseMapper<AdminRole> {
    /**
     * 添加操作员角色信息
     * @param adminId
     * @param roles
     * @return
     */
    int addRoles(@Param("adminId") Integer adminId,@Param("roles") Integer[] roles);
}
